package com.kould.config;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kould.entity.PageDetails;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.List;

@Configuration
public class KacheConfig {
    @Bean
    public PageDetails<Page> pageDetails() throws NoSuchFieldException, IllegalAccessException {
        return new PageDetails<>(Page.class, "records", List.class);
    }
}
